package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 用户发型记录
 *
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("d_hair_archive")
public class HairArchive extends Model<HairArchive> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 发型师ID
     */
    private Integer workerId;

    /**
     * 发型师名称
     */
    private String workerName;

    /**
     * 关联订单
     */
    private Integer orderId;

    /**
     * 上传时间
     */
    private Date addTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 档案图片
     */
    @TableField(exist = false)
    private List<HairArchiveImg> hairArchiveImgList;
}
